package org.example.myleet.p757;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(2 == solution.intersectionSizeTwo(Parser.parse("[[3,13],[2,8],[5,10]]")));
        Assert.isTrue(3 == solution.intersectionSizeTwo(Parser.parse("[[1, 3], [1, 4], [2, 5], [3, 5]]")));
        Assert.isTrue(5 == solution.intersectionSizeTwo(Parser.parse("[[1, 2], [2, 3], [2, 4], [4, 5]]")));
        Assert.isTrue(5 == solution.intersectionSizeTwo(Parser.parse("[[1, 2], [2, 3], [2, 4], [11, 13], [12, 13]]")));
        Assert.isTrue(5 == solution.intersectionSizeTwo(Parser.parse("[[2,10],[3,7],[3,15],[4,11],[6,12],[6,16],[7,8],[7,11],[7,15],[11,12]]")));
        Assert.isTrue(6 == solution.intersectionSizeTwo(Parser.parse("[[33,44],[42,43],[13,37],[24,33],[24,33],[25,48],[10,47],[18,24],[29,37],[7,34]]")));
    }
}
